﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace AngryNerds
{
    public class Catapult : GameObject
    {
        List<SimpleGameObject> catapultParts;

        public Catapult(AngryGame angryGame)
            : base(angryGame)
        {
        }

        protected override void LoadContent()
        {
            catapultParts = new List<SimpleGameObject>();
            catapultParts.Add(new SimpleGameObject(AngryGame, Content.Load<Texture2D>("catapult_base_1"), 0.0f, position, origin));
        }

        public override void Draw(GameTime gameTime)
        {
            foreach (SimpleGameObject gameObject in catapultParts)
                gameObject.Draw(gameTime);
        }

        public override void Update(GameTime gameTime)
        {
            //...
        }

        public override void OnCollide()
        {
        }
    }
}
